<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	List list1 = (List) request.getSession().getAttribute("list");//从session对象中获取菜单编号list
	List list2 = (List) request.getSession().getAttribute("list");
	List list3 = (List) request.getSession().getAttribute("list");
	List list11 = (List) request.getSession().getAttribute("list");
	List list21 = (List) request.getSession().getAttribute("list");
	List list31 = (List) request.getSession().getAttribute("list");
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>慢性病报销系统</title>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
</head>
<body style="background-color:#f2f9fd;">
	<div class="header bg-main">
		<div class="logo margin-big-left fadein-top">
			<h1>
				<img src="../images/logo.jpg" class="radius-circle rotate-hover"
					height="50" alt="" />慢性病报销系统
			</h1>
		</div>
		<div class="head-l">
			<a href="" target="_blank" style="color:#FFF"><span
				class="icon-user"></span> 欢迎 ${param.userId}</a>&nbsp;&nbsp;<a
				class="button button-little bg-green" href="" target="_blank"><span
				class="icon-home"></span> 首页</a> &nbsp;&nbsp;<a
				class="button button-little bg-red" href="LogoutServlet"><span
				class="icon-power-off"></span> 退出登录</a>
		</div>
	</div>
	<div class="leftnav">
		<div class="leftnav-title">
			<strong><span class="icon-list"></span>菜单列表</strong>
		</div>
		<h2>
			<!-- 第一级菜单，系统设置 -->
			<%
				for (int i = 0; i < list1.size(); i++) { //循环遍历第一级菜单
			%>
			<%
				if (list1.get(i).equals("F01")) {
			%>
			<span class="icon-user"></span>系统设置
		</h2>
		<ul style="display:block">

			<!-- 第一级菜单的子菜单-->
			<%
				for (int j = 0; j < list11.size(); j++) {  //循环遍历第一级菜单的子菜单
			%>

			<%
				if (list11.get(j).equals("F0101")) {
			%>
			<li><a href="<%=path%>/system/UserServlet?m=list"
				target="right"><span class="icon-caret-right"></span>用户管理</a></li>
			<%
				} else if (list11.get(j).equals("F0102")) {
			%>
			<li><a href="<%=path%>/system/RoleServlet?m=list"
				target="right"><span class="icon-caret-right"></span>角色管理</a></li>
			<%
				} else if (list11.get(j).equals("F0103")) {
			%>
			<li><a href="<%=path%>/system/MenuServlet?m=list"
				target="right"><span class="icon-caret-right"></span>权限管理</a></li>
			<%
				} else if (list11.get(j).equals("F0104")) {
			%>
			<li><a href="<%=path%>/system/AreaServlet?m=list"
				target="right"><span class="icon-caret-right"></span>行政区域管理</a></li>
			<%
				} else if (list11.get(j).equals("F0105")) {
			%>
			<li><a href="<%=path%>/system/InstitutionServlet?m=list"
				target="right"><span class="icon-caret-right"></span>农合机构管理</a></li>
			<%
				} else if (list11.get(j).equals("F0107")) {
			%>
			<li><a href="<%=path%>/system/ChronicdisServlet?m=list"
				target="right"><span class="icon-caret-right"></span>慢性病分类管理</a></li>
			<%
				} else if (list11.get(j).equals("F0106")) {
			%>
			<li><a href="<%=path%>/system/MedicalServlet?m=list"
				target="right"><span class="icon-caret-right"></span>医疗机构管理</a></li>
			
			<%
				} else {
			%>
			<%
				}

						}
					}
				}
			%>
		</ul>
		<h2>
			<!-- 第二级菜单 ，业务处理-->
			<%
				for (int b = 0; b < list2.size(); b++) {
			%>

			<%
				if (list2.get(b).equals("F02")) {
			%>
			<span class="icon-user"></span>业务办理
		</h2>
		<ul>
		<!-- 第二级菜单的子菜单-->
			<%
				for (int c = 0; c < list21.size(); c++) {
			%>
			<%
				if (list21.get(c).equals("F0201")) {
			%>
			<li><a href="<%=path%>/system/FamilyServlet?m=list"
				target="right"><span class="icon-caret-right"></span>家庭档案管理</a></li>
			<%
				} else if (list21.get(c).equals("F0202")) {
			%>
			<li><a href="<%=path%>/system/PersonServlet?m=list"
				target="right"><span class="icon-caret-right"></span>农民档案管理</a></li>
			<%
				} else if (list21.get(c).equals("F0203")) {
			%>
			<li><a href="<%=path%>/system/ChronicPayServlet?m=showlist"
				target="right"><span class="icon-caret-right"></span>参合缴费登记</a></li>
				<%
				} else if (list21.get(c).equals("F0207")) {
			%>
			<li><a href="<%=path%>/system/RegisterServlet?m=list2"
				target="right"><span class="icon-caret-right"></span>参合列表</a></li>
			<%
				} else if (list21.get(c).equals("F0204")) {
			%>
			<li><a href="<%=path%>/system/RegisterServlet?m=list" target="right"><span
					class="icon-caret-right"></span>慢病证管理</a></li>
			<%
				} else if (list21.get(c).equals("F0205")) {
			%>
			<li><a href="<%=path%>/system/ChronicPayServlet?m=list" target="right"><span
					class="icon-caret-right"></span>慢性病报销</a></li>
					<%
				} else if (list21.get(c).equals("F0206")) {
			%>
			<li><a href="<%=path%>/system/PolicyServlet?m=list"
				target="right"><span class="icon-caret-right"></span>慢性病政策管理</a></li>
			<%
				}

						}

					}
				}
			%>
		</ul>
		<h2>
		<!-- 第三级菜单，统计报表-->
			<%
				for (int d = 0; d < list3.size(); d++) {
			%>

			<%
				if (list3.get(d).equals("F03")) {
			%>
			<span class="icon-user"></span>统计报表
		</h2>
		<ul>
			<%
				for (int e = 0; e < list31.size(); e++) {
			%>
			<%
				if (list31.get(e).equals("F0301")) {
			%>
			<li><a href="<%=path%>/system/ChronicPayServlet?m=showlist" target="right"><span
					class="icon-caret-right"></span>慢性病报销情况</a></li>
			<%
				}
						}
					}
				}
			%>
		</ul>

	</div>
	<script type="text/javascript">
		$(function() {
			$(".leftnav h2").click(function() {
				$(this).next().slideToggle(200);
				$(this).toggleClass("on");
			})
			$(".leftnav ul li a").click(function() {
				$("#a_leader_txt").text($(this).text());
				$(".leftnav ul li a").removeClass("on");
				$(this).addClass("on");
			})
		});
	</script>
	<ul class="bread">
		<li><a href="{:U('Index/info')}" target="right" class="icon-home">
				首页</a></li>
		<li><a href="##" id="a_leader_txt">欢迎界面</a></li>
		<li><b>当前语言：</b><span style="color:red;">中文</php></span>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a
			href="##">英文</a></li>
	</ul>
	<div class="admin">
		<iframe scrolling="auto" rameborder="0" src="welcome.html"
			name="right" width="100%" height="100%"></iframe>
	</div>
	<div style="text-align:center;">
		<p>
			来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a>
		</p>
	</div>
</body>
</html>
